package ${groupId}.${artifactIdProjectPackageName}.exception;

import ${groupId}.${artifactIdProjectPackageName}.common.result.ErrorCode;

/**
 * @author lwd
 * @date 2021/1/25 15:00
 */
public class ${mainClassPrefix}ErrorCode extends ErrorCode {

    public static ErrorCode SUCCESS = new ${mainClassPrefix}ErrorCode("200",200, "成功");

    public static ErrorCode ERROR = new ${mainClassPrefix}ErrorCode("400",400, "错误");


    public static ErrorCode REDIRECT = new ${mainClassPrefix}ErrorCode("302",302, "重定向");
    public static ErrorCode EXCEPTION = new ${mainClassPrefix}ErrorCode("500",500, "内部异常");
    public static ErrorCode SERVICE_IS_BUSY = new ${mainClassPrefix}ErrorCode("40001",40001, "服务繁忙");
    public static ErrorCode ADD_FIAL = new ${mainClassPrefix}ErrorCode("40006",40006, "数据库添加失败");
    public static ErrorCode UPDATE_FIAL = new ${mainClassPrefix}ErrorCode("40007",40007, "数据库更新失败");
    public static ErrorCode DELETE_FIAL = new ${mainClassPrefix}ErrorCode("40008",40008, "数据库删除失败");
    public static ErrorCode NO_OBJECT_FOUND = new ${mainClassPrefix}ErrorCode("41004",41004, "未找到对象");
    public static ErrorCode INSUFFICIENT_AUTHORITY = new ${mainClassPrefix}ErrorCode("41002",41002, "权限不足，请确认当前登录用户");
    public static ErrorCode SYSTEM_IS_BUSY = new ${mainClassPrefix}ErrorCode("41005",41005, "系统繁忙");
    public static ErrorCode NOT_FIND = new ${mainClassPrefix}ErrorCode("41006",41006, "资源不存在");
    public static ErrorCode PARAMETER_ERROR = new ${mainClassPrefix}ErrorCode("41003",41003, "参数错误");
    public static ErrorCode NOT_MORE_INFO = new ${mainClassPrefix}ErrorCode("41009",41009, "没有更多数据了");
    public static ErrorCode HAS_EXIST = new ${mainClassPrefix}ErrorCode("42001",42001, "数据已存在");




    public ${mainClassPrefix}ErrorCode(String dcode, int code, String msg) {
        super(dcode, code, msg);
    }

    @Override
    public String getSiteName() {
        return "${artifactId}";
    }
}
